package com.gamex.findit.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.gamex.findit.model.MemberItem;

/**
 * 회원 구매 아이템
 * @author james
 *
 */
public interface MemberItemMapper {

	/** 리스트*/
	List<MemberItem> selectMemberItem(MemberItem memberItem);
	
	/** 총카운트*/
	int selectMemberItemCount(MemberItem memberItem);
	
	/** 상세*/
	MemberItem selectMemberItemView(@Param("itemNo")int itemNo, @Param("userId")String userId);
	
	/** 회원 아이템 체크*/
	MemberItem checkMemberItem(@Param("itemNo")int itemNo, @Param("userId")String userId);
	
	/** 등록*/
	int insertMemberItem(MemberItem memberItem);
	
	/** 수정*/
	void updateMemberItem(MemberItem memberItem);
	
	/** 삭제*/
	void deleteMemberItem(@Param("itemSeq")int itemSeq);
	
	/** 삭제*/
	void deleteMemberItemByItemNo(@Param("itemNo")int itemNo);
	
}
